package MapRelated;

import android.graphics.drawable.Drawable;
import androidApplication.javaFiles.R;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
import com.google.android.maps.OverlayItem;

public class InvisiblePointOverlayItem extends OverlayItem 
{
	private MapView _mapView;

	public InvisiblePointOverlayItem(GeoPoint point, String title, String snippet, MapView mapView)
	{  
		super(point, title, snippet); 
		this._mapView = mapView;
	}


	@Override  
	public Drawable getMarker(int stateBitset) 
	{  
		Drawable drawable = _mapView.getResources().getDrawable(R.drawable.invisible_point);
		
		drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
		
		return drawable;  
	}
}
